Cover | TOC | Chap | Prev Chap | Prev Fig | Next Fig | Next Chap |
|
Figure 17.5d
A soft drink can built by texture mapping soft-drink-can images to parts of a cylinder. Images include the top, the bottom, and the sides. |
|
Click on the image to view the VRML scene. |
#VRML V2.0 utf8 # The VRML 2.0 Sourcebook # Copyright (c) 1997 # Andrea L. Ames, David R. Nadeau, and John L. Moreland Group { children [ # Can top Shape { appearance Appearance { material Material { } texture ImageTexture { url "cantop.jpg" } } geometry Cylinder { bottom FALSE side FALSE height 2.7 } } # Can bottom Shape { appearance Appearance { material Material { } texture ImageTexture { url "canbot.jpg" } } geometry Cylinder { top FALSE side FALSE height 2.7 } } # Can side Shape { appearance Appearance { material Material { } texture ImageTexture { url "canlabel.jpg" } } geometry Cylinder { top FALSE bottom FALSE height 2.7 } } ] }